<template>
  <section>
    <el-form :model="fromData" status-icon :rules="fromData_rules" ref="fromDataRef" label-width="100px">
      <el-form-item label="点位名称" prop="name">
        <el-input v-model="fromData.name"></el-input>
      </el-form-item>
      <el-form-item label="点位编号" prop="code">
        <el-input v-model="fromData.code"></el-input>
      </el-form-item>
      <el-form-item label="温度" prop="temperature">
        <el-input v-model="fromData.temperature"></el-input>
      </el-form-item>
      <el-form-item label="转站高程" prop="transferElevation">
        <el-input v-model="fromData.transferElevation"></el-input>
      </el-form-item>
      <el-form-item label="后视读数" prop="backReading">
        <el-input v-model="fromData.backReading"></el-input>
      </el-form-item>
      <el-form-item label="前视读数" prop="beforeReading">
        <el-input v-model="fromData.beforeReading"></el-input>
      </el-form-item>
      <el-form-item label="拱顶高程" prop="archHeight">
        <el-input v-model="fromData.archHeight"></el-input>
      </el-form-item>
      <el-form-item label="修正后观测值" prop="correctedObservations">
        <el-input v-model="fromData.correctedObservations"></el-input>
      </el-form-item>
      <el-form-item label="管理等级" prop="managerialClass">
        <el-input v-model="fromData.managerialClass"></el-input>
      </el-form-item>
      <el-form-item label="施工状态" prop="constructionState">
        <el-input v-model="fromData.constructionState"></el-input>
      </el-form-item>
      <el-form-item label="备注" prop="remark">
        <el-input v-model="fromData.remark"></el-input>
      </el-form-item>
    </el-form>
    <div></div>
  </section>
</template>

<script>
export default {
  props: {
    fromData: {},
  },
  data() {
    return {
      fromData_rules: {
        name: [{ required: true, message: '请输入点位名称', trigger: ['blur', 'change'] }],
        type: [{ required: true, message: '请选择点位类型', trigger: ['blur', 'change'] }],
      },
    }
  },
  methods: {
    validate() {
      let res_bool = false
      this.$refs.fromDataRef.validate(bool => {
        res_bool = bool
      })
      return res_bool
    },
    resetFields() {
      this.$refs.fromDataRef.resetFields()
    },
  },
}
</script>

<style>
</style>